var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var a = (function () {
    function t() {}
    t.getInstance = function () {
        null == this.instance && (this.instance = new t());
        return this.instance;
    };
    t.prototype.initAndroidAdVerting = function () {
        cc.AndroidAdverting = t;
    };
    t.prototype.showInterAd = function (t) {
        cc.sys.platform == cc.sys.ANDROID &&
            jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "showinterAd", "(I)V", t);
    };
    t.prototype.showReceiveAd = function () {
        cc.sys.platform == cc.sys.ANDROID &&
            jsb.reflection.callStaticMethod(
                "org/cocos2dx/javascript/AppActivity",
                "showReceiveAd",
                "(Ljava/lang/String;)V",
                ""
            );
    };
    t.prototype.showBannerAd = function () {};
    t.prototype.hideBannerAd = function () {
        cc.sys.platform == cc.sys.ANDROID &&
            jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "hideBAd", "()V");
    };
    t.getReceive = function () {};
    t.getInster = function () {};
    t.preLoadReceiveAd = function () {
        if (cc.sys.platform == cc.sys.ANDROID && !this.firstReceiveAd) {
            this.firstReceiveAd = !0;
            jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "preloadReceiveAd", "()V");
        }
    };
    t.preLoadInterAd = function (t) {
        if (cc.sys.platform == cc.sys.ANDROID && !this.oneInterAd) {
            this.oneInterAd = !0;
            jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "preloadInterAd", "(I)V", t);
        }
    };
    t.prototype.gameExit = function () {
        cc.sys.platform == cc.sys.ANDROID &&
            jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "sureExit", "()V");
    };
    t.firstReceiveAd = !1;
    t.oneInterAd = !1;
    t.isPlay = !1;
    return t;
})();
o.default = a;
